//
//  ZZCAboveOurViewController.m
//  B段项目
//
//  Created by dllo on 15/12/28.
//  Copyright © 2015年 张智超. All rights reserved.
//

#import "ZZCAboveOurViewController.h"

@interface ZZCAboveOurViewController ()

@end

@implementation ZZCAboveOurViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.titleLabel.text = @"关于我们";
    
    //图标
    UIImageView *img = [[UIImageView alloc]initWithFrame:CGRectMake(WIDTH - WIDTH/4.5, WIDTH/40, WIDTH/16, WIDTH/16)];
    img.image = [UIImage imageNamed:@"iconfont-guanyu.png"];
    img.center = CGPointMake(WIDTH - WIDTH/5, self.navigationController.navigationBar.frame.size.height /2);
    [self.rightView addSubview:img];
    
    UIScrollView *scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(15, 0, self.view.frame.size.width - 25, self.view.frame.size.height)];
    scrollView.showsVerticalScrollIndicator = NO;
    [self.view addSubview:scrollView];
    
    UIImageView *aboutTitle = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width,self.view.frame.size.height / 9)];
    aboutTitle.image = [UIImage imageNamed:@"aboutTitle.png"];
    [scrollView addSubview:aboutTitle];
    
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, aboutTitle.frame.origin.y + aboutTitle.frame.size.height, scrollView.frame.size.width, scrollView.frame.size.height)];
    label.text = @"在阿尔卑斯山一处风景秀美却也极为险峻的山路转弯处，经常发生事故，可即使如此，来往的车辆依旧疾驰而过，不断更换的警示牌也没有起到任何作用，直到有一天那里立起一块木牌，写着“慢慢走，欣赏啊”，人们才猛然惊觉，原来只记得埋头赶路，竟忘了看看这满目秀丽。\n\n人生何尝不是如此？\n\n有时我们也想屏蔽喧嚣，虽然四周车水马龙；有时我们也会厌倦忙碌，尽管路人行色匆匆。\n\n只有我们自己知道，世界有多浮躁，你的心就有多安静。\n\n当社交网络的信息越来越疯狂的涌入你的生活，你是否也想关掉它，给内心腾出一片空间，思考、书写、聆听、欣赏……\n\n这世上有和你一样渴望宁静的人，他们正在这里，倾听时间，书写生活。\n\n请停下内心的匆忙，在转弯处休息片刻。";
    label.textColor = [UIColor colorWithRed:0.3 green:0.3 blue:0.3 alpha:1.0];
    label.numberOfLines = 0;
    [label sizeToFit];
    [scrollView addSubview:label];
    
    scrollView.contentSize = CGSizeMake(self.view.frame.size.width - 25, label.frame.origin.y + label.frame.size.height + 40);
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
